﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Points
{
    public class UserPoints : FullAuditedEntity<long>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 来自的用户id
        /// </summary>
        public long FromUserId { get; set; }
        /// <summary>
        /// 体验金描述
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 体验金金额
        /// </summary>
        public decimal Points { get; set; }
        /// <summary>
        /// 体验金类型 （体验金 可用体验金）
        /// </summary>
        public UserPointsType Type { get; set; }
        /// <summary>
        /// 体验金状态 (收入 支出)
        /// </summary>
        public UserPointsStatus Status { get; set; }
    }
}
